import time
import turtle
turtle.color("green")
turtle.setup(800,500)
turtle.penup()
turtle.goto(-300,100)
turtle.pendown()
turtle.pensize(3)
a=[0,60,-120,60]
def kote(len,n,ang):
    if n==0:
        turtle.forward(len)
    else:
        for i in ang:
            turtle.left(i)
            kote(len/3,n-1,ang)
kote(300,3,a)
turtle.right(120)
kote(300,3,a)
turtle.right(120)
kote(300,3,a)
time.sleep(2)